import request from '@/utils/request'

export function userSearch (obj) {
  // 用户列表查询 /user/findUsers
  return request({
    url: '/user/findUsers',
    method: 'post',
    data: obj
  })
}

export function userDel (ids) {
  // 删除用户
  return request({
    url: '/user/dels',
    method: 'post',
    data: ids
  })
}

export function userAdd (obj) {
  // 添加用户
  return request({
    url: '/user/saveuserinfo',
    method: 'post',
    data: obj
  })
}

// 查询部门树
export function treeQueryBm (obj) {
  return request({
    // url: '/dept/findAll',
    url: '/dirDept/listDept',
    method: 'post',
    data: obj
  })
}
